home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2005 November / WNnov2005.iso / Windows / Equipement / hMailServer / hMailServer-4.1-Build-136.exe / {app} / Addons / Squirrelmail Plugins / hmailserver_changepass / setup.php < prev   
PHP Script  |  2004-07-06  |  2KB  |  69 lines

  1. <?php
  2.  
  3. function squirrelmail_plugin_init_hmailserver_changepass() {
  4.   global $squirrelmail_plugin_hooks;
  5.  
  6.   $squirrelmail_plugin_hooks['options_save']['hmailserver_changepass'] = 'hmailserver_changepass_save_pref';
  7.   $squirrelmail_plugin_hooks['optpage_set_loadinfo']['hmailserver_changepass'] = 'hmailserver_changepass_optpage_loadinfo';
  8.   $squirrelmail_plugin_hooks['optpage_register_block']['hmailserver_changepass'] = 'hmailserver_changepass_opt';
  9.  
  10. }
  11.  
  12. function hmailserver_changepass_check_password_force() {
  13.  
  14.    if (defined('SM_PATH'))
  15.       include_once(SM_PATH . 'plugins/hmailserver_changepass/functions.php');
  16.    else
  17.       include_once('../plugins/hmailserver_changepass/functions.php');
  18.  
  19.    hmailserver_changepass_check_password_force_do();
  20.  
  21. }
  22.  
  23.  
  24. function hmailserver_changepass_opt() {
  25.  
  26.    if (defined('SM_PATH'))
  27.       include_once(SM_PATH . 'plugins/hmailserver_changepass/functions.php');
  28.    else
  29.       include_once('../plugins/hmailserver_changepass/functions.php');
  30.  
  31.    hmailserver_changepass_opt_do();
  32.  
  33. }
  34.  
  35.  
  36. function hmailserver_changepass_optpage_loadinfo() {
  37.  
  38.    if (defined('SM_PATH'))
  39.       include_once(SM_PATH . 'plugins/hmailserver_changepass/functions.php');
  40.    else
  41.       include_once('../plugins/hmailserver_changepass/functions.php');
  42.  
  43.    hmailserver_changepass_optpage_loadinfo_do();
  44.  
  45. }
  46.  
  47.  
  48. function hmailserver_changepass_save_pref() {
  49.  
  50.    if (defined('SM_PATH'))
  51.       include_once(SM_PATH . 'plugins/hmailserver_changepass/functions.php');
  52.    else
  53.       include_once('../plugins/hmailserver_changepass/functions.php');
  54.  
  55.    hmailserver_changepass_save_pref_do();
  56.  
  57. }
  58.  
  59.  
  60.  
  61. function hmailserver_changepass_version() {
  62.  
  63.    return '1.0';
  64.  
  65. }
  66.  
  67.  
  68. ?>
  69.